package com.bookstore.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bookstore.entity.vo.NameValueVO;
import com.bookstore.entity.vo.OrderManageVO;
import com.bookstore.entity.vo.OrderVo;
import com.bookstore.entity.vo.TodayVolumVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<com.bookstore.entity.po.OrderPO> {
    public List<OrderVo> getUnsignedOrder(@Param("username") String userName,
                                          @Param("unshipped") int notShipped,
                                          @Param("shipped") int Shipped);

    List<TodayVolumVO> getTodayVolume();

    List<NameValueVO> getClassVolume();

    List<NameValueVO> nearTM();

    List<OrderManageVO> getOrderList(@Param("start") Integer start ,@Param("offset") Integer offset);
}
